package com.sanqing.model;

public class Item {
	private Integer Id;
	private String Name;
	public Item() {}
	public Item(Integer id,String name){
		this.Id=id;
		this.Name=name;
	}
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	public Integer getId() {
		return Id;
	}
	public void setId(Integer id) {
		Id = id;
	}
    // 关键修改：重写toString()方法，返回要显示的文本
    @Override
    public String toString() {
        return Name; // 显示名称
    }
}
